package com.example.demo.entity;

import lombok.Data;

@Data
public class TreeNode {

    public int index;
    public String data;
    public int val;
    public TreeNode left;
    public TreeNode right;

    public TreeNode(int index, String data) {
        this.index = index;
        this.data = data;
    }

    public TreeNode(int val) {
        this.val = val;
    }
}
